package com.hzit.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RestControllerTest {


    @Value("${server.port}")
    private String port;
    @Value("${eureka.client.service-url.defaultZone}")
    private String eurekaZone;
    @Value("${spring.application.name}")
    private String name;

    @GetMapping("/config")
    @ResponseBody
    public String toString() {
        return "RestController{" + "port='" + port + '\'' + ", eurekaZone='" + eurekaZone + '\'' + ", name='" + name
                + '\'' + '}';
    }


}
